﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using log4net;
using TFXK.BLL;
using TFXK.Model;
using TFXK.Common;

public partial class MyControls_HotControl : System.Web.UI.UserControl
{
    public int i = 1;
    public int j = 1;
    private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
    private static readonly CategoryBLL bllCategory = new CategoryBLL();
    int rowCount = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                BindGZCity();
            }
        }
        catch (Exception ex)
        {
            log.Error(ex.Message);
        }
    }
    //绑定关注的城市
    public void BindGZCity()
    {
        rptGZCity.DataSource = bllCategory.GetAllChildByCodeNoPar("gzdcs");
        rptGZCity.DataBind();
        rptGZTour.DataSource = bllCategory.GetAllChildByCodeNoPar("gzdjd");
        rptGZTour.DataBind();
    }
}
